#!/bin/sh

if [ -r /usr/local/certificate-services/environment ] ; then
	. /usr/local/certificate-services/environment
fi

cd ${HTMF_HOME}/src/inst/smartcard20/

rm -rf www/htmf-dist \
    www/cacerts \
    www/website \
    www/index.html \
    www/page.css \
    www/test-protocol

ln -s ${HTMF_HOME}/dist    	www/htmf-dist
ln -s ${HTMF_HOME}/cacerts 	www/cacerts
ln -s ${HTMF_HOME}/tmp/htdocs 	www/website
ln -s ${HTMF_HOME}/src/inst/smartcard20/www/website/smartcard20.html	www/index.html
ln -s ${HTMF_HOME}/src/inst/smartcard20/www/website/page.css	www/page.css
ln -s ${HTMF_HOME}/doc/test-protocol   www/test-protocol
cp ${HTMF_HOME}/doc/*.pdf   www/website/docs
